import { ITableInit } from "@/components/base-ui/table";

export const tableInit: ITableInit = {
  propList: [
    { prop: "title", label: "标题", minWidth: "100", },
    { prop: "headimage", label: "封面", minWidth: "100", slot: "headimage" },
    { prop: "createTime", label: "发布时间", minWidth: "100", },

    { prop: "operation", label: "操作", minWidth: "100", slot: "operation" }
  ],
  // children: {
  //   rowKey: "id",
  //   treeProp: {
  //     children: "children",
  //     hasChildren: true
  //   }
  // }
  // showIndex: false,
  // selection: false,
  // cardStyle: {
  //   marginTop: '20px'
  // },

  pagination: true,
  paginationConfig: {
    currentPage: 1,
    pageSize: 10
  },
  total: 0,
  btn: ["add"]
};
